module.exports = {
  text: {
    type: Object,
    default: function () {
      return {
        content: '请在数据管理中设置文本，需要高亮的文本放在<i>20%</i>标签中'
      }
    },
    name: '文本内容',
    filedType: 'api'
  },

  propText: {
    type: String,
    default: '',
    name: '文本内容',
    nameTip: '该属性值比数据管理中的文本内容优先级高',
    filedType: 'string'
  },

  bgColor: {
    type: String,
    default: '#fff',
    name: '文本块背景',
    filedType: 'color'
  },

  padding: {
    type: String,
    default: '0px',
    name: '文本块内边距',
    filedType: 'string'
  },

  lineHeight: {
    type: String,
    default: '20px',
    name: '行高',
    filedType: 'string'
  },

  letterSpacing: {
    type: String,
    default: 'inherit',
    name: '字间距',
    filedType: 'string'
  },

  fontFamily: {
    type: Array,
    default: '微软雅黑',
    name: '字体',
    filedType: 'select',
    options: [
      {
        name: '微软雅黑',
        value: 'Microsoft YaHei'
      },
      {
        name: '宋体',
        value: '宋体'
      },
      {
        name: '继承父元素',
        value: 'inherit'
      },
      {
        name: 'Arial',
        value: 'Arial'
      },
      {
        name: 'Helvetica Neue',
        value: 'Helvetica Neue'
      },
      {
        name: 'Helvetica',
        value: 'Helvetica'
      },
      {
        name: '液晶面板',
        value: 'digiface'
      }
    ]
  },

  fontSize: {
    type: String,
    default: '14px',
    name: '字号',
    filedType: 'string'
  },

  fontWeight: {
    type: Boolean,
    default: false,
    name: '显示为粗体',
    filedType: 'switch'
  },

  color: {
    type: String,
    default: '#333',
    name: '文本颜色',
    filedType: 'color'
  },

  shadow: {
    type: String,
    default: 'rgba(0, 0, 0, 0)',
    name: '文本投影色',
    filedType: 'color'
  },

  shadowSize: {
    type: String,
    default: '0px 0px 0px',
    name: '投影的距离大小',
    filedType: 'string'
  },

  align: {
    type: String,
    default: 'left',
    name: '对齐方式',
    filedType: 'select',
    options: [
      {
        name: '左对齐',
        value: 'left'
      },
      {
        name: '居中',
        value: 'center'
      },
      {
        name: '右对齐',
        value: 'right'
      },
      {
        name: '两端对齐',
        value: 'justify'
      }
    ]
  },

  highlightTextFontSize: {
    type: String,
    default: '14px',
    name: '高亮文本字号',
    filedType: 'string'
  },

  highlightTextColor: {
    type: String,
    default: '#ff8314',
    name: '高亮文本颜色',
    filedType: 'color'
  },

  highlightTextIsBold: {
    type: String,
    default: false,
    name: '高亮文本显示为粗体',
    filedType: 'switch'
  },

  isSingle: {
    type: Boolean,
    default: true,
    name: '单行显示',
    filedType: 'switch'
  },

  isMultiLine: {
    type: Boolean,
    default: false,
    name: '设置多行隐藏',
    filedType: 'switch'
  },

  lineNum: {
    type: String,
    default: '3',
    name: '设置超出几行隐藏',
    nameTip: '只有开启设置多行隐藏才有效',
    filedType: 'string'
  },

  collapsible: {
    type: Boolean,
    default: false,
    name: '可折叠',
    filedType: 'switch'
  },

  collapseBtnColor: {
    type: String,
    default: '#ff8314',
    name: '高亮文本颜色',
    filedType: 'color'
  },

  dataIsFromPortal: {
    type: Boolean,
    default: false,
    name: '是否从门户获取数据',
    nameTips: '如果从门户获取数据，则数据集无效',
    filedType: 'switch'
  },

  moudleId: {
    type: String,
    default: '',
    name: '新闻模块Id',
    nameTip: '新闻模块Id参数',
    filedType: 'sync',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  }

}

// Helvetica Neue,,宋体,Arial,Helvetica,sans-serif
